package com.community.zhihuishequ.net.entity.defense;

import android.os.Parcel;
import android.os.Parcelable;

public class DefenseRegionData implements Parcelable{

    private int id;
    private String name;
    private int status;
    private int type;

    protected DefenseRegionData(Parcel in) {
        id = in.readInt();
        name = in.readString();
        status = in.readInt();
        type = in.readInt();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public static final Creator<DefenseRegionData> CREATOR = new Creator<DefenseRegionData>() {
        @Override
        public DefenseRegionData createFromParcel(Parcel in) {
            return new DefenseRegionData(in);
        }

        @Override
        public DefenseRegionData[] newArray(int size) {
            return new DefenseRegionData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(name);
        dest.writeInt(status);
        dest.writeInt(type);
    }
}
